package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.ExchangePrice;
import cc.yugu.yhdw.common.persistence.MasterMapper;

import java.util.List;
/**
 * 换点套餐信息
 *
 * @Date:Created in 2018/6/30 16:29
 * @Author:
 * @Modified By: zjn 2018/6/30 16:29
 */
public interface ExchangePriceMapper extends MasterMapper {
    /**
    * 查询表，返回行数
    *
    * @Param: [exchangePrice]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:29
    */
    int findPageCount(ExchangePrice exchangePrice);

    int findPageCounts(ExchangePrice exchangePrice);
    /**
    * 分页查询
    *
    * @Param: [exchangePrice]
    * @Return: java.util.List
    * @Author By: zjn 2018/6/30  16:29
    */
    List findPageResult(ExchangePrice exchangePrice);

    List findPageResults(ExchangePrice exchangePrice);
    /**
    * 根据主键查询
    *
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.ExchangePrice
    * @Author By: zjn 2018/6/30  16:29
    */
    ExchangePrice find(long id);
    /**
    * 插入
    *
    * @Param: [exchangePrice]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:29
    */
    int insert(ExchangePrice exchangePrice);
    /**
    * 插入（带有代理商）
    * 
    * @Param: [exchangePrice]
    * @Return: int
    * @Author By: zjn 2018/7/31  13:35
    */ 
    int insertAgencyId(ExchangePrice exchangePrice);
    /**
    * 根据主键更新
    *
    * @Param: [exchangePrice]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:30
    */
    int update(ExchangePrice exchangePrice);

    int updateAgencyId(ExchangePrice exchangePrice);
    /**
    * 根据主键删除
    *
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/6/30  16:30
    */
    int delete(long id);
}
